package com.ruoyi.patrol.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡查排班(行政)对象 pt_line_staff
 *
 * @author mlb
 * @date 2022-11-21
 */
public class PtLineStaff extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 线路ID
     */
    @Excel(name = "线路ID")
    private Long lineId;

    /**
     * 行政人员ID
     */
    @Excel(name = "行政人员ID")
    private Long staffId;

    private Long groupId;
    private Long schoolId;

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    /**
     * 巡查日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "巡查日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    private String[] dates;

    /**
     * 巡逻点位个数
     */
    @Excel(name = "巡逻点位个数")
    private Integer siteCount;

    /**
     * 排班线路执行状态：0、未执行，1、正在进行，2、执行完成
     */
    @Excel(name = "排班线路执行状态：0、未执行，1、正在进行，2、执行完成")
    private Integer patrolStatus;

    /**
     * 安全巡查结果：0、正常，大于0为异常的个数
     */
    @Excel(name = "安全巡查结果：0、正常，大于0为异常的个数")
    private Integer patrolResult;

    private PtLine line;
    private PtStaff staff;
    private PtSchoolGroup group;

    public PtSchoolGroup getGroup() {
        return group;
    }

    public void setGroup(PtSchoolGroup group) {
        this.group = group;
    }

    /**
     * 导出行政记录id
     */
    private Long[] ids;

    public Long[] getIds() {
        return ids;
    }

    public void setIds(Long[] ids) {
        this.ids = ids;
    }

    public PtLine getLine() {
        return line;
    }

    public void setLine(PtLine line) {
        this.line = line;
    }

    public PtStaff getStaff() {
        return staff;
    }

    public void setStaff(PtStaff staff) {
        this.staff = staff;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLineId(Long lineId) {
        this.lineId = lineId;
    }

    public Long getLineId() {
        return lineId;
    }

    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    public Long getStaffId() {
        return staffId;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public void setSiteCount(Integer siteCount) {
        this.siteCount = siteCount;
    }

    public Integer getSiteCount() {
        return siteCount;
    }

    public void setPatrolStatus(Integer patrolStatus) {
        this.patrolStatus = patrolStatus;
    }

    public Integer getPatrolStatus() {
        return patrolStatus;
    }

    public void setPatrolResult(Integer patrolResult) {
        this.patrolResult = patrolResult;
    }

    public Integer getPatrolResult() {
        return patrolResult;
    }

    public String[] getDates() {
        return dates;
    }

    public void setDates(String[] dates) {
        this.dates = dates;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("lineId", getLineId())
                .append("staffId", getStaffId())
                .append("date", getDate())
                .append("siteCount", getSiteCount())
                .append("patrolStatus", getPatrolStatus())
                .append("patrolResult", getPatrolResult())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
